package com.yxhl.zoume.data.http.rest.repositoryimpl;

import com.yxhl.zoume.data.http.repository.updateapp.UpdateAppRepository;
import com.yxhl.zoume.data.http.rest.param.CheckUpdateParam;
import com.yxhl.zoume.data.http.rest.repositoryimpl.base.BaseDataRepository;
import com.yxhl.zoume.data.http.rest.response.login.CheckUpdateResponse;

import javax.inject.Inject;

import okhttp3.ResponseBody;
import rx.Observable;

/**
 * Created by sugarya on 16/5/13.
 */
public class UpdateAppDataRepository extends BaseDataRepository implements UpdateAppRepository {


    @Inject
    public UpdateAppDataRepository() {
    }

    @Override
    public Observable<CheckUpdateResponse> checkUpdate(CheckUpdateParam param) {
        return mZouMeService.checkUpdate(param);
    }

    @Override
    public Observable<ResponseBody> downloadApp(String fileUrl) {
        return mZouMeService.downloadApp(fileUrl);
    }
}
